public class Bird extends animal implements flying,Running{
    //父类构造方法
    public Bird(String name,int age){
        super("小鸟",1);
    }

    //同上，重写父类eat方法
    @Override
    public void eat() {
        System.out.println(name+"在吃！！！");
    }

    //鸟会飞
    public void fly(){
        System.out.println("鸟在飞！");
    }

    //鸟爪也能跑
    @Override
    public void run() {
        System.out.println("鸟在跑！");
    }
}
